const gulp = require('gulp');
const babel = require('gulp-babel');

gulp.task("build", function () {
    gulp.src("src/js/*.js")
        .pipe(babel({
            presets: [
                ["env", {
                    "modules": "amd"
                }]
            ]
        }))
        .pipe(gulp.dest("dest/js"));
});

gulp.task('watch', function () {
    gulp.watch('src/js/*.js', ['build']);
});